package com.kma.summer2012.client.events.reject;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class SuccessfulRejectEvent extends GwtEvent<SuccessfulRejectEvent.successfulRejectEventHandler> {
    private static Type<successfulRejectEventHandler> TYPE = new Type<successfulRejectEventHandler>();

    @Override
    public Type<successfulRejectEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(successfulRejectEventHandler successfulRejectEventHandler) {
        successfulRejectEventHandler.OnReject(this);
    }

    public static Type<successfulRejectEventHandler> getType() {
        return TYPE;
    }

    public interface successfulRejectEventHandler extends EventHandler {
        void OnReject(SuccessfulRejectEvent event);
    }
}